home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / perl5 / 5.8.7 / Net / demos / time < prev   
Text File  |  2006-04-25  |  309b  |  14 lines

  1. #!/usr/local/bin/perl -w
  2.  
  3. use blib;
  4. use Net::Time qw(inet_time inet_daytime);
  5.  
  6. print inet_daytime('localhost');
  7. print inet_daytime('localhost','tcp');
  8. print inet_daytime('localhost','udp');
  9.  
  10. print inet_time('localhost'),"\n";
  11. print inet_time('localhost','tcp'),"\n";
  12. print inet_time('localhost','udp'),"\n";
  13.  
  14.